import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.util.*;

/**
 * I represent a lake
 * @author (your name) 
 * @version May 20th 2013
 */
public class Lago extends Decoracion
{
    private ArrayList<GreenfootImage> lake; //Stores the images for the lake
    
    /**
     * This constructor add all the images to an Arraylist, then it sets a specified image.
     * @param aPieceOfLake is the number of the pice of lake one want to be displayed
     */
    public Lago(int aPieceOfLake)
    {
        String tempString=new String(); //Temporal string that gets the name of the image file.
        lake=new ArrayList<GreenfootImage>();
        for (int i=0; i<7; i++)
        {
            tempString="lake"+(i+1)+".png"; //this concatenates a defined name.
            lake.add(new GreenfootImage(tempString));
        }
        this.setImage(lake.get(aPieceOfLake));
    }
}
